<template>
  <view class="wapper">
    <view class="box">
      <view class="box-item">
        <view class="box-left">
          <image src="../../static/icons/password.png" mode="scaleToFill" />
          <text>设置新密码</text>
        </view>
        <view>
          <image src="@/static/icons/右箭头.png" mode="scaleToFill" />
        </view>
      </view>
      <view class="box-item" @click="geng()">
        <view class="box-left">
          <image src="../../static/icons/刷新.png" mode="scaleToFill" />
          <text>检查更新</text>
        </view>
        <view>
          <image src="../../static/icons/右箭头.png" mode="scaleToFill" />
        </view>
      </view>
    </view>
  </view>
  <Transition name="qq">
    <view class="mask" v-show="show" @click="cang()">
      <image
        src="https://cdn7.axureshop.com/demo/1996612/images/%E5%90%AF%E5%8A%A8_%E5%BC%95%E5%AF%BC%E9%A1%B5/u192.png"
        mode="scaleToFill"
      />
    </view>
  </Transition>
</template>

<script setup>
import { ref } from "vue";
// 显示更新的遮罩层
let show = ref(false);
function geng() {
  show.value = true;
}
let cang = () => {
    show.value = false;
};
</script>

<style lang="scss" scoped>

// 配置溢出和隐藏的动画
.qq-enter-active,
.qq-leave-active {
  transition: all 0.5s ease-in-out;
}

.qq-enter-from,
.qq-leave-to {
  opacity: 0;
  transform: scale(0.1);
}


.mask {
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  text-align: center;
  position: fixed;
  image {
    height: 850rpx;
    width: 600rpx;
    margin-top: 350rpx;
  }
}
.wapper {
  height: calc(100vh - 91rpx);
  background-color: rgb(245, 245, 245);
  overflow: hidden;
  .box {
    margin: 60rpx 30rpx;
    box-shadow: 0 0 5rpx 5rpx #ccc;
    .box-item {
      padding: 30rpx 30rpx;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 3rpx solid #ccc;
      background-color: #fff;
      height: 50rpx;
    }
    image {
      width: 35rpx;
      height: 35rpx;
      margin-right: 10rpx;
      vertical-align: middle;
    }
  }
}
</style>
